package personal.xjl._23java2studentdemo.spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("baoma")//是@Controller、@Service、@Mapper总和
@Data
public class Car {
    //@Value为对象赋值
    @Value("粤A88888")
    String id;
    @Value("aaa")
    String brand;
    @Value("600")
    int maxSpeed;
}
